package cn.ctbu.xiaopeng.studentscoremanage.pojo.vo;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 课程分页视图对象
 *
 * @author xiaopeng
 * @version 1.0
 */
@Data
public class CoursePageVO {

    private Integer id;  // 主键 ID

    private String courseNo;  // 课程编号，唯一标识课程

    private String tno; // 任课教师编号，关联教师表的 tno

    private String tname;  // 任课教师名称，关联教师表的 tno

    private String cname;  // 课程名称

    private Integer credits;  // 课程学分

    private Integer hours;  // 课程学时

    private String departmentId; // 课程所属系/部门编号，关联系/部门表的 departmentId

    private String department;  // 课程所属系/部门（可选）

    private String semester;  // 开课学期，例如：2024春季学期

    private String assessMethod;  // 考核方式，例如：期末考试、平时成绩等

    // 构造函数
    public CoursePageVO(Integer id, String courseNo, String tno, String tname, String cname,
                        Integer credits, Integer hours, String departmentId ,String department,
                        String semester, String assessMethod) {
        this.id = id;
        this.courseNo = courseNo;
        this.tno = tno;
        this.tname = tname;
        this.cname = cname;
        this.credits = credits;
        this.hours = hours;
        this.departmentId = departmentId;
        this.department = department;
        this.semester = semester;
        this.assessMethod = assessMethod;
    }
}
